From e628b1916705fa40d1c55447117b9311ae56e552 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 5 Apr 2011 17:21:36 +0100 Subject: [PATCH] libxl: explicitly set disk format in libxl__append_disk_list_of_type Ideally we should be able to infer the format from something stashed in xenstore but this is better than letting users see garbage values. Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 3831d8859f..41a0af9a6e 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1778,6 +1778,7 @@ static unsigned int libxl__append_disk_list_of_type(libxl__gc *gc, pdisk->readwrite = 0; type = libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc, "%s/device-type", libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc, "%s/%s/frontend", be_path, *dir)))); pdisk->is_cdrom = !strcmp(type, "cdrom"); + pdisk->format = DISK_FORMAT_UNKNOWN; } } -- 2.30.2